<?php
/*
 * Created on 2013-12-11
 *
 * 代码测试类
 */
 
	//获取项目名称
	$project = explode('/',$_SERVER['REQUEST_URI']);
  	//引入全局常量文件
  	require_once($_SERVER['DOCUMENT_ROOT'].$project[1].'/common/constants.php');
  	//引入数据库工具
	require_once(constant('ROOT_PATH').'/resource/util/medoo.min.php');
  
?>
<h1>
	Test Biz PHP
</h1>



<?php 
	//MEDOO TEST:
	$database = new medoo("joabhome_jiankuncai");
	$result = $database->select("pro_info",["id","p_name"],["id"=>"33"]);
	echo $result[0]["p_name"];
	
	echo $_SERVER['DOCUMENT_ROOT'];
	
	print("Hello World");  //等效于print "Hello World"括号可以不写
	
	//var_dump 输出
 	$a = array(1, 2, array("a", "b", "c"));
	var_dump($a);
	
	 $a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x','y','z'));
	 print_r ($a);
	 
	 echo date("Y-m-d H:i:s");
	 echo "<br/>";
	 echo time();
?>
